import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入自动导入组件的脚本
import globalComponents from './components/global/auto-import-components'; 




const app = createApp(App);

// 遍历globalComponents对象，注册全局组件
console.log(globalComponents, 'globalComponents');
for (const [name, component] of Object.entries(globalComponents)) {
  console.log(name, component, '------------');
  app.component(name, component);
}

app.use(store).use(router).mount('#app')
